﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_form_attr")]
    [Serializable]
    public class Form_Attr : ObjectBase<Form_Attr>
    {
        [Column(Length = 11), NotNull(""), Default(0)]
        public Int64 fgid { get; set; }

        [Column(Length = 6), NotNull(""), Default(50)]
        public Int32 pid { get; set; }

        [Column(Length = 200), NotNull(""), Default("")]
        public String typename { get; set; }

        [Column(Length = 200)]
        public String typeremark { get; set; }

        [Column(Length = 150), NotNull(""), Default("")]
        public String attrname { get; set; }

        [Column(Length = 20), NotNull(""), Default("")]
        public String inputtype { get; set; }

        [LongText]
        public String attrvalue { get; set; }

        [Column(Length = 150), Default("")]
        public String validatetext { get; set; }

        [Column(Length = 3), NotNull(""), Default(20)]
        public Int32 attrsize { get; set; }

        [Column(Length = 3), NotNull(""), Default(10)]
        public Int32 attrrow { get; set; }

        [Column(Length = 3), NotNull(""), Default(50)]
        public Int32 attrlenther { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(1)]
        public Int32 isclass { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(0)]
        public Int32 isvalidate { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(0)]
        public Int32 isline { get; set; }

    }
}
